extends "../bunao-3/bunao-3.gd"


var baseId = ""
var upText1 = "不挠之焰赋予的伤害加成+25%"
var upText2 = "不挠之焰不再掉血"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒若被航空护卫的目标周围3格内存在敌人，则使自己的：鱼雷机立即对其发射鱼雷|\n轰炸机立即发起2次炮击|战斗机获得2层<圣盾>", "空域警戒", "bunao4", 8)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "bunao4":
		bunao4()

func bunao4():
	var chas = getCellChas(cell, 3, 1)
	if bindCha != null:
		chas += getCellChas(bindCha.cell, 3, 1)
		if not chas.empty():
			for i in summedCha:
				if not i.isDeath:
					if i.type == sys.CharaClass.FIGHT:
						buff.addShengDun(i, 2)
					else:
						for j in chas:
							if i.type == sys.CharaClass.TBF:
								i.castTorpedo(j)
							elif i.type == sys.CharaClass.CAS:
								i.normalAtkChara(j)
								i.normalAtkChara(j)
						